package org.ejc.persist.model;

import java.io.Serializable;
import java.util.Set;
import org.apache.commons.lang.builder.ToStringBuilder;


/** @author Hibernate CodeGenerator */
public class Address implements Serializable {

    /** identifier field */
    private Integer addressId;

    /** nullable persistent field */
    private String addressLine1;

    /** nullable persistent field */
    private String addressLine2;

    /** nullable persistent field */
    private String cityTown;

    /** persistent field */
    private org.ejc.persist.model.CountryCode countryCode;

    /** persistent field */
    private Set contactDetails;

    /** persistent field */
    private Set conventions;

    /** persistent field */
    private Set registrants;

    /** full constructor */
    public Address(Integer addressId, String addressLine1, String addressLine2, String cityTown, org.ejc.persist.model.CountryCode countryCode, Set contactDetails, Set conventions, Set registrants) {
        this.addressId = addressId;
        this.addressLine1 = addressLine1;
        this.addressLine2 = addressLine2;
        this.cityTown = cityTown;
        this.countryCode = countryCode;
        this.contactDetails = contactDetails;
        this.conventions = conventions;
        this.registrants = registrants;
    }

    /** default constructor */
    public Address() {
    }

    /** minimal constructor */
    public Address(Integer addressId, org.ejc.persist.model.CountryCode countryCode, Set contactDetails, Set conventions, Set registrants) {
        this.addressId = addressId;
        this.countryCode = countryCode;
        this.contactDetails = contactDetails;
        this.conventions = conventions;
        this.registrants = registrants;
    }

    public Integer getAddressId() {
        return this.addressId;
    }

    public void setAddressId(Integer addressId) {
        this.addressId = addressId;
    }

    public String getAddressLine1() {
        return this.addressLine1;
    }

    public void setAddressLine1(String addressLine1) {
        this.addressLine1 = addressLine1;
    }

    public String getAddressLine2() {
        return this.addressLine2;
    }

    public void setAddressLine2(String addressLine2) {
        this.addressLine2 = addressLine2;
    }

    public String getCityTown() {
        return this.cityTown;
    }

    public void setCityTown(String cityTown) {
        this.cityTown = cityTown;
    }

    public org.ejc.persist.model.CountryCode getCountryCode() {
        return this.countryCode;
    }

    public void setCountryCode(org.ejc.persist.model.CountryCode countryCode) {
        this.countryCode = countryCode;
    }

    public Set getContactDetails() {
        return this.contactDetails;
    }

    public void setContactDetails(Set contactDetails) {
        this.contactDetails = contactDetails;
    }

    public Set getConventions() {
        return this.conventions;
    }

    public void setConventions(Set conventions) {
        this.conventions = conventions;
    }

    public Set getRegistrants() {
        return this.registrants;
    }

    public void setRegistrants(Set registrants) {
        this.registrants = registrants;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("addressId", getAddressId())
            .toString();
    }

}
